home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / i / internet / software / www / stik / scripts / demon / dial.scr < prev    next >
Encoding:
Text File  |  1995-09-23  |  3.2 KB  |  105 lines

  1. #
  2.  
  3. #   There are two parts to the connection process.
  4.  
  5. #
  6.  
  7. #   The first part is initialising the modem, dialing a remote system
  8.  
  9. #   and establishing a connection to a remote modem.
  10.  
  11. #
  12.  
  13. #   The second part is to log into the remote computer.  This will
  14.  
  15. #   involve entering a username and password, selecting SLIP mode,
  16.  
  17. #   and reading the Internet Address that your system will have for
  18.  
  19. #   the duration of the session.
  20.  
  21. #
  22.  
  23. #
  24.  
  25. #   Dial Script Part 1  -  Establishing the connection.
  26.  
  27. #
  28.  
  29. #   The first thing to do is to specify the speed of the modem with
  30.  
  31. #   the BAUD_RATE variable.
  32.  
  33. #
  34.  
  35. BAUD_RATE = 115200
  36.  
  37. #
  38.  
  39. #
  40.  
  41. #   Next you should define how your modem responds to the DTR
  42.  
  43. #   signal.  STiK will use the DTR signal to hangup the modem
  44.  
  45. #   if HANGUP = DTR is set.  Otherwise set HANGUP to the
  46.  
  47. #   appropriate hangup string for your modem. (eg: HANGUP = ATH)
  48.  
  49. #
  50.  
  51. HANGUP = DTR
  52.  
  53. #
  54.  
  55. #
  56.  
  57. #   PREFIX sets the dial prefix (ie: ATD, ATDT, ATDP)
  58.  
  59. #
  60.  
  61. PREFIX = ATDT
  62.  
  63. #
  64.  
  65. #
  66.  
  67. #   INIT set the string you can use to initialise the modem.
  68.  
  69. #
  70.  
  71. INIT = ATZ
  72.  
  73. #
  74.  
  75. #
  76.  
  77. #   Dialing paramaters.
  78.  
  79. #
  80.  
  81. #   The dialing parameters are CONNECT_WAIT and REDIAL_DELAY.  These
  82.  
  83. #   are times in seconds.  CONNECT_WAIT is the amount of time to wait
  84.  
  85. #   for a connection after dialing a number.  REDIAL_DELAY is the amount
  86.  
  87. #   of time to wait in between dial attempts.
  88.  
  89. #
  90.  
  91. CONNECT_WAIT = 35
  92.  
  93. REDIAL_DELAY = 20
  94.  
  95. #
  96.  
  97. #
  98.  
  99. #   Phone Number(s).  PHONE_NUMBER = number.  Some providers
  100.  
  101. #   have more than one number you can dial.  You can specify
  102.  
  103. #   up to five phone numbers here.
  104.  
  105. #
  106.  
  107. PHONE_NUMBER = 2479666
  108.  
  109. #
  110.  
  111. #
  112.  
  113. #   Determining connection success/failure.
  114.  
  115. #
  116.  
  117. #   Connection success can be determined either by detecting the
  118.  
  119. #   modems Carrier Detect signal (SUCCESS = CDWAIT), or waiting 
  120.  
  121. #   for a CONNECT response (SUCCESS = CONNECT) from the modem.
  122.  
  123. #   Failure can be determined by a timeout or a modem response
  124.  
  125. #   such as NO CARRIER, BUSY, NO DIALTONE etc.
  126.  
  127. #   Up to five FAILURE test words can be set.
  128.  
  129. #
  130.  
  131. SUCCESS = CONNECT
  132.  
  133. FAILURE = BUSY
  134.  
  135. FAILURE = NO CARRIER
  136.  
  137. FAILURE = NO DIALTONE
  138.  
  139. #
  140.  
  141. #
  142.  
  143. #
  144.  
  145. #   Dial Script Part 2  -  Log in to the Service Provider.
  146.  
  147. #
  148.  
  149. #   The STiK dialer uses the standard `conversational' method for
  150.  
  151. #   login to the provider.  This involves searching for certain
  152.  
  153. #   words and sending an appropriate response.  The special
  154.  
  155. #   response $GET_IP is used to read the IP address that your
  156.  
  157. #   provider has assigned you for this session.  If your provider
  158.  
  159. #   has allocated you a permanent IP Address, then you should set
  160.  
  161. #   it in the default.cfg file and NOT use $GET_IP.
  162.  
  163. #
  164.  
  165. #   Each step of the `conversation' is specified as a FIND line
  166.  
  167. #   and a RESP line.  There can be up to 10 steps.  Each FIND
  168.  
  169. #   must have a matching RESP, or the dialer will get confused.
  170.  
  171. #
  172.  
  173. #   By default each RESP line is sent with a carriage return
  174.  
  175. #   character at the end.  If you need to use a line feed character
  176.  
  177. #   instead then put a | at the end of the line.  This only works
  178.  
  179. #   if the | is the last character of the line.
  180.  
  181. #
  182.  
  183. #
  184.  
  185. FIND = ogin:
  186.  
  187. RESP = yourhostname
  188.  
  189. #
  190.  
  191. FIND = word:
  192.  
  193. RESP = Yourpassword
  194.  
  195. #
  196.  
  197. FIND = ocol:
  198.  
  199. RESP = slip
  200.  
  201. #Stik only works with slip atm....
  202.  
  203. #
  204.  
  205. FIND = IP Address:
  206.  
  207. RESP = $GET_IP
  208.  
  209. #